package com.nnnu.wsnackshop.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
@Schema(description = "新增商品 DTO")
public class AddProductDTO {
    @NotNull
    @Schema(description = "门店ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer storeId;

    @NotNull
    @Schema(description = "分类ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer categoryId;

    @NotNull
    @Schema(description = "品牌id", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer brandId;

    @NotBlank
    @Schema(description = "商品名称", requiredMode = Schema.RequiredMode.REQUIRED)
    private String name;

    @Schema(description = "描述")
    private String description;

    @Schema(description = "主图URL")
    private String mainImage;

    @Schema(description = "商品多图URL（JSON数组）")
    private String images;

    @Schema(description = "状态（0=inactive,1=active）")
    private Integer status;

    @Schema(description = "SPU ID")
    private Integer spuId;
}
